package com.dingding.manager.modules.dirver.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 司机列表响应bean
 * @author haoxiaojun
 * @date 2016年12月6日 下午8:58:48
 * @since V 2.5.7
 */
@SuppressWarnings("serial")
public class RespGetDriverDTO implements Serializable {

	private String provice_name; // 省份
	private String cityName; // 所在城市
	private String organizationName; // 公司名称
	private String trueName; // 姓名

	private Integer sex; // 性别 1:男 2:女
	private String telPhone; // 手机号码
	private String idCard; // 身份证号码

	private Date jszLssueDate; // 初领驾驶证日期
	private Date jszValidityPeriod; // 驾驶证到期日期
	private Integer driving; // 驾龄

	private String permittedType; // 准驾车型
	private String jszFileNumber; // 驾驶证档案编号
	private String lisencePlate; // 车牌号

	private String vehicleType; // 车型
	private String vehicleModel; // 车型
	private String specialAuthInfoId; // 司机Id
	private Integer suvStatus; // 状态 1：审核中2：审核通过3：审核未通过 4：审核被拒绝

	private Integer is_del; // 逻辑删除字段
	private String userId; // 用户Id
	private Integer vehicleLevelId; // 车辆等级ID 1.经济性 2.舒适性 3.商务型 4.豪华型

	private Date xszLssueDate; // 行驶证注册日期
	private String mark; // 描述
	private Date submitTime; // 提交时间

	private Integer authType; // 认证类型 1.游客 2.专车 3.出租车
	
	private Integer userStatus;//用户登录状态  1:登录中  2：退出  3：锁定

	public Integer getAuthType() {
		return authType;
	}

	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public Integer getVehicleLevelId() {
		return vehicleLevelId;
	}

	public void setVehicleLevelId(Integer vehicleLevelId) {
		this.vehicleLevelId = vehicleLevelId;
	}

	public Date getXszLssueDate() {
		return xszLssueDate;
	}

	public void setXszLssueDate(Date xszLssueDate) {
		this.xszLssueDate = xszLssueDate;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSpecialAuthInfoId() {
		return specialAuthInfoId;
	}

	public void setSpecialAuthInfoId(String specialAuthInfoId) {
		this.specialAuthInfoId = specialAuthInfoId;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public Integer getIs_del() {
		return is_del;
	}

	public void setIs_del(Integer is_del) {
		this.is_del = is_del;
	}

	public String getProvice_name() {
		return provice_name;
	}

	public void setProvice_name(String provice_name) {
		this.provice_name = provice_name;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public Date getJszLssueDate() {
		return jszLssueDate;
	}

	public void setJszLssueDate(Date jszLssueDate) {
		this.jszLssueDate = jszLssueDate;
	}

	public Date getJszValidityPeriod() {
		return jszValidityPeriod;
	}

	public void setJszValidityPeriod(Date jszValidityPeriod) {
		this.jszValidityPeriod = jszValidityPeriod;
	}

	public Integer getDriving() {
		Integer year = null;
		if (jszLssueDate != null) {

			// 注册日期转换为天
			long lssueDays = jszLssueDate.getTime() / (1000 * 60 * 60 * 24);
			// 当前时间转换为天
			long currDays = new Date(System.currentTimeMillis()).getTime() / (1000 * 60 * 60 * 24);

			year = (int) Math.floor((double) ((currDays - lssueDays) / 365));
		}

		return year;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	public void setDriving(Integer driving) {
		this.driving = driving;
	}

	public String getPermittedType() {
		return permittedType;
	}

	public void setPermittedType(String permittedType) {
		this.permittedType = permittedType;
	}

	public String getJszFileNumber() {
		return jszFileNumber;
	}

	public void setJszFileNumber(String jszFileNumber) {
		this.jszFileNumber = jszFileNumber;
	}

	public String getLisencePlate() {
		return lisencePlate;
	}

	public void setLisencePlate(String lisencePlate) {
		this.lisencePlate = lisencePlate;
	}

	public Integer getSuvStatus() {
		return suvStatus;
	}

	public void setSuvStatus(Integer suvStatus) {
		this.suvStatus = suvStatus;
	}

	@Override
	public String toString() {
		return "RespGetDriverDTO [provice_name=" + provice_name + ", cityName=" + cityName + ", organizationName="
				+ organizationName + ", trueName=" + trueName + ", sex=" + sex + ", telPhone=" + telPhone + ", idCard="
				+ idCard + ", jszLssueDate=" + jszLssueDate + ", jszValidityPeriod=" + jszValidityPeriod + ", driving="
				+ driving + ", permittedType=" + permittedType + ", jszFileNumber=" + jszFileNumber + ", lisencePlate="
				+ lisencePlate + ", vehicleType=" + vehicleType + ", specialAuthInfoId=" + specialAuthInfoId
				+ ", suvStatus=" + suvStatus + ", is_del=" + is_del + ", userId=" + userId + "]";
	}

	public Integer getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

}
